﻿using System;
using System.Collections.Generic;
using System.Text;

namespace csharpcore7_ch6
{
    class TimeZoneExample1
    {
        static void _Main()
        {
            TimeZone zone = TimeZone.CurrentTimeZone;
            Console.WriteLine(zone.StandardName); //中国标准时间
            Console.WriteLine(zone.DaylightName); //中国夏令时

            DateTime dt1 = new DateTime(1987,1,1);
            DateTime dt2 = new DateTime(1987,7,1);
            Console.WriteLine(zone.IsDaylightSavingTime(dt1)); //False
            Console.WriteLine(zone.IsDaylightSavingTime(dt2));  //False
            Console.WriteLine(zone.GetUtcOffset(dt1));
            Console.WriteLine(zone.GetUtcOffset(dt2));


        }
    }
}
